import request from '@/utils/http';

// 获取结算信息
export const getCheckoutInfo = () => request({
    url: '/member/order/pre',
    method: 'GET'
});

// 获取支付信息
export const getPayInfo = (id) => request({
    url: `/member/order/${id}`,
    method: 'GET'
});

// 创建订单，生成订单id
export const createOrderInfo = (data) => request({
    url: '/member/order',
    method: 'POST',
    data
})